package edu.sctu.yueding.activitys;

import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import edu.sctu.yueding.R;
import edu.sctu.yueding.utils.JumpUtils;

/**
 * Created by Administrator on 2016/9/18.
 */
public class ScanErrorActivity extends BaseActivity {

    private TextView errorMsg,back;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        setContentView(R.layout.activity_scan_error);
        initSystemBar(this, 0);
        initView();

    }

    private void initView() {

        errorMsg = (TextView) findViewById(R.id.error_message);
        back = (TextView) findViewById(R.id.id_error_back_txt);
        errorMsg.setText(getIntent().getStringExtra("errorMsg"));

        back.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {

                Bundle bundle = new Bundle();
                bundle.putInt("flag", 3);
                JumpUtils.activityToFragmentJump(ScanErrorActivity.this, bundle);
            }
        });
    }

}
